package ds.safelock.util;

public enum OS {
	WINDOWS, LINUX, MAC, SOLARIS, UNKNOWN;
	
	public static OS getRunningOS()
	{
		String prop = System.getProperty("os.name").toLowerCase();
		if (prop.startsWith("windows"))
			return WINDOWS;
		else if (prop.contains("linux"))
			return LINUX;
		else if (prop.startsWith("solaris") || prop.startsWith("sunos"))
			return SOLARIS;
		else if (prop.startsWith("mac"))
			return MAC;
		return UNKNOWN;
	}
}
